﻿@model Vnsf.Data.Entities.Account.UserAccount

@{
    ViewBag.Title = "Create";
}

<h2>Create</h2>

@using (Html.BeginForm())
{
    @Html.AntiForgeryToken()

    <div class="form-horizontal">
        <h4>UserAccount</h4>
        <hr />
        @Html.ValidationSummary(true)

        <div class="form-group">
            @Html.BootStrapLabelFor(model => model.Username)
            <div class="col-md-10">
                @Html.EditorFor(model => model.Username)
                @Html.ValidationMessageFor(model => model.Username)
            </div>
        </div>

        <div class="form-group">
            @Html.BootStrapLabelFor(model => model.Email)
            <div class="col-md-10">
                @Html.EditorFor(model => model.Email)
                @Html.ValidationMessageFor(model => model.Email)
            </div>
        </div>

        <div class="form-group">
            @Html.LabelFor(model => model.RequiresPasswordReset, new { @class = "control-label col-md-2" })
            <div class="col-md-10">
                @Html.EditorFor(model => model.RequiresPasswordReset)
                @Html.ValidationMessageFor(model => model.RequiresPasswordReset)
            </div>
        </div>

        <div class="form-group">
            @Html.LabelFor(model => model.IsLoginAllowed, new { @class = "control-label col-md-2" })
            <div class="col-md-10">
                @Html.EditorFor(model => model.IsLoginAllowed)
                @Html.ValidationMessageFor(model => model.IsLoginAllowed)
            </div>
        </div>

        <div class="form-group">
            @Html.LabelFor(model => model.HashedPassword, new { @class = "control-label col-md-2" })
            <div class="col-md-10">
                @Html.EditorFor(model => model.HashedPassword)
                @Html.ValidationMessageFor(model => model.HashedPassword)
            </div>
        </div>

        <div class="form-group">
            <div class="col-md-offset-2 col-md-10">
                <input type="submit" value="Create" class="btn btn-default" />
            </div>
        </div>
    </div>
}

<div>
    @Html.ActionLink("Back to List", "Index")
</div>
